package com.tryaging;

import com.tryaging.consumer.YiYi;
import com.tryaging.privader.Hello;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @author CKC
 * @DateTime 2021/11/21 13:08
 */
@SpringBootApplication
@EnableAspectJAutoProxy(proxyTargetClass = true)
public class ApplicationReTry {
    public static void main(String[] args) throws InterruptedException {
        ConfigurableApplicationContext context = SpringApplication.run(ApplicationReTry.class, args);
        YiYi yi = context.getBean(YiYi.class);
        System.out.println(yi.getMsg());
    }
}
